package chpt09;

import java.util.concurrent.Callable;

public class FindMaxTask implements Callable<Integer>{
	private int[] arr;
	private int begin;
	private int end;

	
	public FindMaxTask(int[] arr,int begin, int end) {
		this.arr = arr;
		this.begin = begin;
		this.end = end;
	}

	@Override
	public Integer call() throws Exception {
		
		return ArrayUtil.findMax(arr, begin, end);
	}
	
}

